package electricity.mapper;

import electricity.domain.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yang
 * @since 2025-07-14
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    List<String> selectPermissionCodesByRole(String role);

    List<Permission> selectAllPermissions();
}
